package com.fjh.feign.hystrix;

import com.alibaba.fastjson.JSON;
import com.fjh.es.ProdEs;
import com.fjh.feign.UserCollectProdFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Slf4j
public class UserCollectProdFeignHystrix implements UserCollectProdFeign {
    /**
     *远程调用搜索模块查询商品信息集合
     * @param prodIds
     * @return
     */
    @Override
    public List<ProdEs> getProdEsByIds(List<Long> prodIds) {
        log.error("远程调用搜索模块查询商品信息集合失败，商品的ids为{}", JSON.toJSONString(prodIds));
        return null;
    }
}
